package com.msmall.community.common.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.community.common.model.Message;

public interface MessageDao extends BaseDao<Message, Long>{
	
	public List<Message> getMessages(Long sender, Long receiver) throws Exception;
	public List<Message> getMessages(Long sender, Long receiver, Integer type) throws Exception;
	/**
	 * 获得用户的所有消息
	 */
	public List<Message> getMessagesByUserid(Long receiver) throws Exception;
}
